package com.company;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 杨东
 */
public class ListTest {
    Object[] elementData;
    public boolean contains(Object o) {
        int size = 0;
        for (int i = 0; i < size; i++) {
            if (o.equals(elementData[i])) {
                return true;
            }
        }
        return false;
    }
    public static void main(String[] args) {
        Integer  []sn = {1,2,4};
        List<Integer>list = new ArrayList<>();
        for (Integer sn1: sn){
            System.out.println(sn1.toString());
        }

//        String []sn= {"yd","YD","yD","Yd"};
//        List<String>list = List.of("yd","YD","yD","Yd");

        ListTest l = new ListTest();
        l.contains(new ListTest());
    }
}
